﻿#ifndef LICENSEWINDOW_H
#define LICENSEWINDOW_H

#include <QMainWindow>
#include "LicenseCodeManagement.h"

namespace Ui {
class LicenseWindow;
}

class LicenseWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit LicenseWindow(QWidget *parent = nullptr);
    ~LicenseWindow();

private:
    Ui::LicenseWindow *ui;
    QString m_PlaneTypeIDStr; //机型id
    LicenseCodeManagement* m_pLicenseCodeMGT; //授权管理对象

public slots:
    void openLicenseSlot(LicenseCodeManagement* licenseCodeMGT);  //接收登录信息的槽函数
    void on_pbCancle_clicked();  //取消

signals:
    void openLicenseSuccessSignal(); //打开授权界面成功的信号
    void openICDSingal(); //打开ICD管理的信号

private slots:
    void on_pbCopy_clicked();  //复制机器码
    void on_pbConfirm_clicked(); //授权码验证
};

#endif // LICENSEWINDOW_H
